import Vue from 'vue'
import App from './App.vue'
import router from './routers'
import store from './stores'//默认会找文件的index.js == ./stores/index.js

//导入axios，进行跨域请求
import axios from "axios"
Vue.prototype.axios = axios;

//定义一个过滤器,格式化字段
Vue.filter("formatImg",function(url,arg){
  return url.replace(/w\.h/,arg)
})

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)//会覆盖app.vue的app div
}).$mount('#app')
